<div class="ml left">
	<?php 
		if(isset($_SESSION[Q::ini('acl_session_key')]))
			$this->_element('accountinfo');
		else
			$this->_element('login');
	?>
	<div class="ad-left" style="margin-top:15px">
		<?php if (!empty($user)) { ?>
			<?php if(isset($leftBannerOfferPic) && $leftBannerOfferPic != ''): ?>
				<?php 
					$record = new Record($user['id']);
					$record->addBannerOfferImpressionRecording($leftBannerId);
				?>
				<a href="<?php echo $leftBannerOfferLink; ?>" target="_blank"><img width="215" height="250" src="<?php echo $leftBannerOfferPic; ?>" /></a>
			<?php else: ?>
<!-- <script type="text/javascript" src="http://assets.tp-cdn.com/static3/js/api/payment_overlay.js"></script>
<a href="#" onclick="earn();return false;"><img src="<?php echo $img_url; ?>dealspot.png"></a>
<script type="text/javascript">
  function earn() {
    TRIALPAY.social.show_overlay('72c7624f84bec333e9a03d38a59e2eff', <?php echo "'uid".$user['id']."'";?>, { 'dealspot':1, 'm':"mm" });
  }
</script> -->
<iframe align="middle" frameborder=0 scrolling="no" style="width:215px; height:250px;" src="http://www.peanutlabs.com/banner/?d=215x250&publisherId=4712&endUserId=<?php echo $user['id'];?>"></iframe>
			<!--	<a href="<?php echo url('offer/morecredit');?>"><img width="215" height="250" src="<?php echo $img_url;?>dealspot.png" /></a> -->
			<?php endif; ?>
		<?php } ?>
	</div>
	<div class="latest">
		<div class="clear" style="height:78px;"></div>
		<div class="list">
			<?php 
					foreach($site['activities'] as $activity)
					{
						echo '<div class="item" style="height:35px">' .$activity['who'] . ' - ' . $activity['what'] . ' - ' . Util::getTimeElapsed($activity['time']) . '</div>';
					}
			?>
		</div>
	</div>
</div>
